import request from '@/utils/request'
import { ADMIN } from '@/config/baseUrl'

// 文件预览
export function getSimpleFilePreview(fileId) {
  return request({
    url: `${ADMIN}/system/attachment/getSimpleFilePreview`,
    method: 'get',
    params: fileId
  })
}

export function getNextCodeByModule(module) {
  return request({
    url: `${ADMIN}/getNextCodeByModule`,
    method: 'get',
    params: {autoCodeModule: module}
  })
}
